home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1984 June
/
1984-06.d64
/
spell critter.vi
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
109 lines
2 print"[147]spelling critter"
15 print"one moment please"
20 poke36869,255
21 poke52,28:poke56,28:clr
22 fori=7168to7679:pokei,peek(i+25600):next
23 forc=7168to7175:reada:pokec,a:next
24 forc=7664to7671:reada:pokec,a:next
25 forc=7656to7663:reada:pokec,a:next
30 data96,128,77,63,31,13,0,0
31 data3,52,184,240,240,184,52,3
32 data0,54,58,242,242,58,54,0
50 dimw$(50)
60 print"[147]"
61 poke36878,15
70 print"hi,what is your"
75 input"name";n$
80 gosub5000
90 w=0:r=0:z=0
100 forb=1ton
120 print"[147]"w$(b)
140 fort=1to1000:next
160 print"[147]":a$=""
165 print" to review the word "
166 print" type ? and return "
180 print"how do you spell":print
190 input"that word";a$
195 ifa$=""orlen(a$)=0then160
200 ifa$="that word"thengosub6000:goto160
210 ifa$="?"ora$="/"then120
220 ifa$=w$(b)thengosub7000:goto400
230 gosub8000
240 print"[147]i'm sorry,"n$:print
260 print"that is wrong":print
270 poke36874,223
274 fort=1to500:next
275 poke36874,0
280 print"the correct way is:"
300 print"[144]"w$(b)""
320 w=w+1
340 goto450
400 print"that is right"
420 print"very good ";n$
424 m=220
425 forp=1to8
427 m=m+3
429 poke36876,m
430 fort=1to25
431 poke36876,0
432 nextp
433 restore
440 r=r+1
450 poke198,0:print"hit any key"
460 getz$:ifz$=""then460
480 nextb
500 print"[147]you had "r" right and ":print
510 printw" wrong."
550 print"would you like to":print
560 print"try again (y/n)?"
580 getz$:ifz$=""or(z$<>"y"andz$<>"n")then580
590 ifz$="y"then80
600 print"[147]it has been very nice":print:print"spelling with you":print
620 printn$"."
640 print"please come back again":print
650 print"to play real soon."
660 print"bye!"
700 end
5000 rem input
5050 print"[147]how many words do we"
5060 input"have today";z$:n=val(z$):ifn>50orn=0then5050
5100 forx=1ton
5150 print"[147][160]check your spelling!![146]"
5200 print"word #";x;:input"[157]";w$(x)
5210 iflen(w$(x))=0orlen(w$(x))>10then5150
5220 ifasc(w$(x))<65orasc(w$(x))>90then5150
5250 nextx
5300 return
6000 rem wiseguy
6010 print"very funny,wiseguy":print
6015 fort=1to1000:next
6020 fort=1to500:next
6030 return
7000 q=0
7001 l=7900:co=38620
7010 pokel+q,0:pokeco+q,4
7020 pokel+q+1,61:pokeco+q+1,4
7030 fort=1to50:next
7040 pokel+q+1,62:pokeco+q+1,4
7042 poke36877,160:fort=1to10:next
7045 poke36877,0
7050 fort=1to50:next
7060 ifq=9thenreturn
7070 pokel+q,32
7075 q=q+1
7080 goto7001
8000 q=0
8001 l=7900:co=38620
8010 pokel+q,0:pokeco+q,4
8020 pokel+q+1,61:pokel+q+1,4
8030 fort=1to50:next
8040 pokel+q+1,62:pokeco+q+1,4
8042 poke36877,160:fort=1to10:next
8045 poke36877,0
8050 fort=1to50:next
8060 pokel+q,32
8070 ifq=20thenpokel+q+1,32:return
8075 q=q+1
8080 goto8001
9000 end